package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.MsgUserMapper;
import com.rongke.model.MsgUser;
import com.rongke.service.MsgUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @MsgUserServiceImpl
 * @用户消息ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class MsgUserServiceImpl extends ServiceImpl<MsgUserMapper, MsgUser> implements MsgUserService {

    @Autowired
    private MsgUserMapper msgUserMapper;

    /**
     * @根据条件查找用户消息
     * @param msgUser
     * @return
     */
    @Override
    public List<MsgUser> selectByCondition(MsgUser msgUser) {
        return msgUserMapper.selectByCondition(msgUser);
    }

    @Override
    public void insertBatchMsg(Map condition) {
        msgUserMapper.insertBatchMsg(condition);
    }
}
